<?php
/*
 OS POS, Open Source Commerce Solutions

  Copyright (c) 2008 OS POS
  Portions Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
?>
<!-- accounting //-->
          <tr>
            <td>
<?php
  $heading = array();
  $contents = array();

  $heading[] = array('text'  => BOX_HEADING_ACCOUNTING,
                     'link'  => tep_href_link(FILENAME_ORDERS, 'selected_box=accounting', 'SSL'));

 if ($selected_box == 'accounting' || $menu_dhtml == true) {
    // RCO start
    if ($cre_RCO->get('accounting', 'columnleft') !== true) {
      //RCI start
      $returned_rci_orders_top = $cre_RCI->get('orders', 'boxestop');
      $returned_rci_orders_bottom = $cre_RCI->get('orders', 'boxesbottom');
      $returned_rci_accounting_top = $cre_RCI->get('accounting', 'boxestop');
      $returned_rci_accounting_bottom = $cre_RCI->get('accounting', 'boxesbottom');
      $contents[] = array('text'  => $returned_rci_orders_top .
                                     tep_admin_files_boxes(FILENAME_QBI, BOX_CATALOG_QBI, 'SSL' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_CREATE, BOX_HEADING_QBI_MENU_1, 'SSL' ) .
                                     tep_admin_files_boxes('', BOX_HEADING_QBI_MENU_2, 'SSL' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_PRODUCTS, BOX_HEADING_QBI_MENU_2A, 'SSL', '', '2' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_DISCOUNT, BOX_HEADING_QBI_MENU_2B, 'SSL', '', '2' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_SHIP, BOX_HEADING_QBI_MENU_2C, 'SSL', '', '2' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_PAY, BOX_HEADING_QBI_MENU_2D, 'SSL', '', '2' ) .
                                     tep_admin_files_boxes('', BOX_HEADING_QBI_MENU_3, 'SSL' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_PRODUCTSMATCH, BOX_HEADING_QBI_MENU_3A, 'SSL', '', '2' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_DISCMATCH, BOX_HEADING_QBI_MENU_3B, 'SSL', '', '2' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_SHIPMATCH, BOX_HEADING_QBI_MENU_3C, 'SSL', '', '2' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_PAYMATCH, BOX_HEADING_QBI_MENU_3D, 'SSL', '', '2' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_CONFIG, BOX_HEADING_QBI_MENU_4, 'SSL' ) .
                                     tep_admin_files_boxes(FILENAME_QBI_ABOUT, BOX_HEADING_QBI_MENU_5, 'SSL' ) .
                                     tep_admin_files_boxes('', BOX_CUSTOMERS_ORDERS) .
                                     tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS, 'SSL') .
                                     tep_admin_files_boxes(FILENAME_PAYPAL, BOX_CUSTOMERS_PAYPAL, 'SSL') .
                                     $returned_rci_orders_bottom .
                                     tep_admin_files_boxes('', BOX_CUSTOMERS_MENU) .
                                     $returned_rci_accounting_top .
                                     tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS, 'SSL') .
                                     tep_admin_files_boxes(FILENAME_CUSTOMERS_GROUPS, BOX_CUSTOMERS_GROUPS, 'SSL') .
                                     tep_admin_files_boxes(FILENAME_CREATE_ACCOUNT, BOX_MANUAL_ORDER_CREATE_ACCOUNT, 'SSL' ) .
                                     $returned_rci_accounting_bottom);
      //RCI eof
    }
    // RCO eof
  }

  $box = new box;
  echo $box->menuBox($heading, $contents);
?>
            </td>
          </tr>
<!-- accounting_eof //-->
